package com.cie2.janji.services;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class UpdatePromiseJob implements Job {

	public UpdatePromiseJob() {
	}

	
	public void execute(JobExecutionContext context)
			throws JobExecutionException {
		
		System.out.println("Calling promise engine ...");
	
		PromiseEngine promiseEngine = (PromiseEngine) context.getJobDetail().getJobDataMap().get("promiseEngine");
		promiseEngine.updateStatusDailyJob();
	}
}